<table class="table table-bordered table-striped">
<thead>
<tr>
    <th>单号</th>

    <th>客户姓名</th>
    <th>客户手机</th>

    <th>起点</th>

    <th>订单类型</th>
    <th>代驾员姓名</th>
    <th>代驾员工号</th>
    <th>联系方式</th>
    <th>下单时间</th>
    <th>发布时间</th>
    <th>接单时间</th>
    <th>到达时间</th>
    <th>开始代驾时间</th>

    <th>操作</th>
</tr>
</thead>
<tbody>
<#list page.list as order>
<tr>
    <td><a href="/order/orderDetailView/${order.id}">${order.id}</a></td>

    <#if order.member_id ??>
        <td>
        ${order.real_name!""}
        </td>
        <td>
        ${order.cell_phone!""}
        </td>

    <#else>
        <td>
        ${order.real_name2!""}
        </td>
        <td>
        ${order.cell_phone2!""}
        </td>

    </#if>

    <td>
    ${order.startpoint!""}
    </td>

    <td>
        <#if order.from_source ??>
            <#if order.from_source == "WECHAT">
                公众号
            <#elseif order.from_source == "APP">
                自建
            <#elseif order.from_source == "ADMIN">
                强制派单
            <#elseif order.from_source == "CLIENT">
                客户端
            <#elseif order.from_source == "GRAB">
                员工抢单
            </#if>
        </#if>
    </td>

    <td>
    ${order.driver_name!" "}
    </td>
    <td>
    ${order.job_number!" "}
    </td>
    <td>
    ${order.driver_phone!" "}
    </td>
    <td>
        <#if order.create_time??>
			 ${order.create_time!if_exists?string("MM/dd HH:mm") }
			</#if>
    </td>
    <td>
        <#if order.publish_time??>
			 ${order.publish_time?string("MM/dd HH:mm")}
			</#if>
    </td>
    <td>
        <#if order.accept_time??>
			 ${order.accept_time?string("MM/dd HH:mm") }
			</#if>
    </td>
    <td>
        <#if order.arrived_time??>
			   ${order.arrived_time?string("MM/dd HH:mm")}
			  </#if>
    </td>
    <td>
        <#if order.driver_begin_time??>
			   ${order.driver_begin_time?string("MM/dd HH:mm")}
			  </#if>
    </td>
    <td nowrap>
        <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
            <a class="btn btn-success" href="/order/complaint/${order.id}"  >投诉</a>
        </#if>
        <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
            <a class="btn btn-success" href="/order/cancelAccepted/${order.id}"  >取消</a>
        </#if>
        <#if session.userRole == 'admin' || session.userRole == 'brandManager' || session.userRole == 'middleManager' || session.userRole == 'customerCenter'>
            <a class="btn btn-success" href="/order/toFinishOrder/${order.id}"><i class="icon-remove icon-white"></i> 订单结算</a>
        </#if>
        <!--<a class="btn btn-inverse" href="/order/driverCancel/${order.id}"><i class="icon-remove icon-white"></i> 撤消</a>-->
    </td>
</tr>
</#list>
</tbody>
</table>
    <input type="hidden" value="${totalCount}" id="id_process_totalCount"/>
    <input type="hidden" value="${pageCount}" id="id_process_pageCount"/>